package xyz.labmem.base.core.result

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.io.Serializable

/**
 * ResultPageVo
 * @Author lty
 * @Date 2021/12/15 10:08
 */
@ApiModel("统一分页返回json格式")
class RP<T>(code: Int, message: String, data: T, count: Long) : RV<T>(), Serializable {

    @ApiModelProperty(value = "数据总数量")
    var count: Long = 0L

    init {
        this.code = code
        this.message = message
        this.data = data
        this.count = count
    }

}